home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000054_icon-group-sender _Sun Feb 25 03:52:32 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 26 Feb 1996 12:11:36 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Sun, 25 Feb 1996 03:52:32 GMT
  4. From: rjp@heffer.demon.co.uk (Rob Partington)
  5. Message-Id: <slrn4ivn88.3rh.rjp@heffer.demon.co.uk>
  6. Sender: icon-group-request@cs.arizona.edu
  7. Subject: Icon replacement for a perl script?
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9. Status: O
  10.  
  11.  
  12. Ok, I've got a perl script which takes a list of filenames, and processes
  13. each one to find out which filter to use on the file (depending on a regexp
  14. match on the filename). Then it processes each file in turn, with the
  15. appropriate filters (and some default ones that are always applied), to
  16. create two new ones (a local copy, and a remote one).
  17.  
  18. Since this takes a while (~11 minutes for 1158 files), and a ridiculous
  19. amount of memory (it peaks at about 16M of swap :-), I was wondering if
  20. it might be easier/faster/more memory efficient to do this in icon?
  21.  
  22. The most complicated replacement is
  23.  
  24. &title;some text here => <head><title>some text here</title>
  25.  
  26. All the others are simple text=>text replaces.
  27.  
  28. Does anyone have any suggestions? Any help gratefully appreciated
  29. (especially by the drive my swap space is on :-)
  30.  
  31. -- 
  32. +X------------------------------------------------------------------------oO+
  33. | Bob Partington - rjp@heffer.demon.co.uk - Linux'd and Acorn'd             #
  34. | work - http://www.adxis.com/ - personal - http://www.adxis.com/staff/rjp/ ^
  35. |           This message may not reflect the opinions of Adxis              v
  36. +<----##############################################################------->+
  37.  
  38.  
  39.